package com.ruoyi.mobile.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.time.LocalDateTime;

/**
 * 收集用户信息对象 user_info
 * 
 * @author ruoyi
 * @date 2022-10-06
 */
public class UserInfo
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** user.id */
    @Excel(name = "user.id")
    private Integer userId;

    /** 类型（1:知情同意书，2:调查问卷，3:体适能测试，4:用户基本资料，5:血象结果1） */
    @Excel(name = "类型", readConverterExp = "1=:知情同意书，2:调查问卷，3:体适能测试，4:用户基本资料，5:血象结果1")
    private Integer type;

    /** 子类型（type为2和4的又分了4个步骤，每个步骤都是一个子类型） */
    @Excel(name = "子类型", readConverterExp = "t=ype为2和4的又分了4个步骤，每个步骤都是一个子类型")
    private Integer subType;

    /** 用户填写的内容 */
    @Excel(name = "用户填写的内容")
    private String content;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setSubType(Integer subType) 
    {
        this.subType = subType;
    }

    public Integer getSubType() 
    {
        return subType;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("type", getType())
            .append("subType", getSubType())
            .append("content", getContent())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
